package com.sheet.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description
 *
 * @Author IronSheet
 * @Date 2022/3/2 3:04
 */
@RestController
public class TestController {

    @NacosValue(value = "${nacos.test.properties}", autoRefreshed = true)
    public String testProperties;

    @GetMapping("/test")
    public String test(){
        return testProperties;
    }
}
